// 引入数据库类
const dbb = require('./dbClass')


//schema
const adminSchema = {
  username: {
    type: String,
    unique: true
  },
  password: {
    type: String
  },
  role: {
    type: String,
    default: '超级管理员'
  },
  addTime: {
    type: String
  }
}
//model
const adminModle = new dbb().createModel(adminSchema, 'admin')

module.exports = adminModle